<div class="pop-form pop-strategy pop-createalgorithm">
	<form class="createForm" onsubmit="return false;">
		<input type="hidden" name="id" />
		<div class="form_item">
			<label class="form_label">算法名称：</label>
			<div class="form_ctrl"><input type="text" name="name" class="form-control required" maxlength="40" placeholder="请填写名称..." /></div>
		</div>
		<div class="form_item" style="height:auto">
			<label class="form_label">算法UI：</label>
			<div class="form_ctrl">
				<div class="uicode block">
					<textarea name="uicode" class="codecont" placeholder="请输入XML代码..." disabled="disabled"></textarea>
				</div>
				<a href="/static/trp/template/algorithm_api.html#xml" target="_blank" style="position:absolute;top:-5px;right:-20px;" title="UI模板使用说明"><span class="glyphicon glyphicon-question-sign blue" style="vertical-align:middle;"></span></a>
			</div>
		</div>
		<div class="form_item" style="height:34px;top:-10px;">
			<label class="form_label nopadding">&nbsp;</label>
			<div class="form_ctrl nopadding">
				<span class="font12">快捷添加：</span>
				<button type="button" class="btn btn-info btn-xs btn-shortcuts" ctype="text">文本标签</button>
				<button type="button" class="btn btn-info btn-xs btn-shortcuts" ctype="textbox" itype="text">文本输入框</button>
				<button type="button" class="btn btn-info btn-xs btn-shortcuts" ctype="textbox" itype="datetime">日期输入框</button>
				<button type="button" class="btn btn-info btn-xs btn-shortcuts" ctype="droplist" itype="radio">下拉选择-单选</button>
				<button type="button" class="btn btn-info btn-xs btn-shortcuts" ctype="droplist" itype="checkbox">下拉选择-多选</button>
				<button type="button" class="btn btn-info btn-xs btn-shortcuts" ctype="radio">单选</button>
				<button type="button" class="btn btn-info btn-xs btn-shortcuts" ctype="checkbox">多选</button>
			</div>
		</div>
		<div class="form_item" style="height:34px;top:-10px;">
			<label class="form_label nopadding">&nbsp;</label>
			<div class="form_ctrl nopadding">
				<span class="font12">快捷布局：</span>
				<button type="button" class="btn btn-info btn-xs btn-shortcuts" ctype="line">单行</button>
				<button type="button" class="btn btn-info btn-xs btn-shortcuts" ctype="repeat">重复域</button>
				<!-- <button type="button" class="btn btn-info btn-xs btn-formatxml">格式化代码</button> -->
			</div>
		</div>
		<div class="form_item" style="height:34px;top:-10px;">
			<label class="form_label nopadding">&nbsp;</label>
			<div class="form_ctrl nopadding">
				<span class="font12">预　　览：</span>
				<button type="button" class="btn btn-warning btn-xs btn-preview" ctype="ui">UI预览</button>
				<button type="button" class="btn btn-warning btn-xs btn-preview" ctype="json">JSON预览</button>
			</div>
		</div>
		<div class="form_item" style="height:auto">
			<label class="form_label">算法代码：</label>
			<div class="form_ctrl">
				<div class="javacode block">
					<textarea name="javacode" class="codecont" placeholder="请输入JAVA代码..." disabled="disabled">package com.semidata.trp.algorithm;
import com.semidata.rtd.core.json.JsonObject;
import com.semidata.rtd.core.json.JsonArray;
import com.semidata.trp.algorithm.request.StrategyContext;
import java.util.*;
public class Algorithm {
  public static double calculate(StrategyContext context) {
    //此处添加算法代码，请不要修改框架代码
  }
}</textarea>
				</div>
				<a href="/static/trp/template/algorithm_api.html#java" target="_blank" style="position:absolute;top:-5px;right:-20px;" title="JAVA代码接口说明"><span class="glyphicon glyphicon-question-sign blue" style="vertical-align:middle;"></span></a>
			</div>
		</div>
		<div class="form_item" style="height:34px;top:-10px;">
			<label class="form_label nopadding">&nbsp;</label>
			<div class="form_ctrl nopadding">
				<span class="font12">检　　验：</span>
				<button type="button" class="btn btn-warning btn-xs btn-validation" ctype="ui">算法检验</button>
				<!-- <select name="theme">
					<option>default</option>
					<option>ambiance</option>
					<option>eclipse</option>
					<option>monokai</option>
				</select> -->
			</div>
		</div>
		<div class="form_item" style="height:auto">
			<label class="form_label">检验状态：</label>
			<div class="form_ctrl">
				<span class="label label-default btn-validation" style="font-size:14px;">未通过</span>
				<span class="label label-success btn-validation" style="font-size:14px;display:none;">已通过</span>
			</div>
		</div>
	</form>
</div>
